package io.lkt.modules.sys.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import io.lkt.common.utils.PageUtils;
import io.lkt.common.utils.Query;

import io.lkt.modules.sys.dao.BBrandPromotionSettleInfoDao;
import io.lkt.modules.sys.entity.BBrandPromotionSettleInfoEntity;
import io.lkt.modules.sys.service.BBrandPromotionSettleInfoService;


@Service("bBrandPromotionSettleInfoService")
public class BBrandPromotionSettleInfoServiceImpl extends ServiceImpl<BBrandPromotionSettleInfoDao, BBrandPromotionSettleInfoEntity> implements BBrandPromotionSettleInfoService {
    @Autowired
    private BBrandPromotionSettleInfoDao promotionSettleInfoDao;
    @Override
    public PageUtils queryPage(Map<String, Object> params) {
        IPage<BBrandPromotionSettleInfoEntity> page = this.page(
                new Query<BBrandPromotionSettleInfoEntity>().getPage(params),
                new QueryWrapper<BBrandPromotionSettleInfoEntity>()
        );

        return new PageUtils(page);
    }

    @Override
    public List<BBrandPromotionSettleInfoEntity> queryList(Map<String, Object> map) {
        return promotionSettleInfoDao.queryList(map);
    }

    @Override
    public Integer queryTotal(Map<String, Object> map) {
        return promotionSettleInfoDao.queryTotal(map);
    }

}
